package files_controller_with_factory;

public class Helper {
	
	public void menu() throws java.io.IOException{
		
			
			char choise;
			do{
				System.out.println("Information about: ");
				String[] Menu = {" 1 - DirCommandExecutor ", " 2 - TreeCommandExecutor ", " 3 - FindCommandExecutor ", 
						" 4 - MkdirCommandExecutor ", " 5 - CopyCommandExecutor ", " 6 - DeleteCommandExecutor", 
						" 7 - MoveCommandExecutor ", " 8 - ExitCommandExecutor ", " 9 - close menu"};
				for(String x : Menu){
					System.out.println(x);
				}
				System.out.println("Choose interesting item: ");
				choise = (char) System.in.read();
			} while(choise<'1' || choise>'9');
			
			
			switch(choise){
				case('1'):
					System.out.println("dir[space]path[e.g. A:\\example]");
					break;
				case('2'):
					System.out.println("tree[space]path[e.g. A:\\example]");
					break;
				case('3'):
					System.out.println("find[space]path[e.g. A:\\example][space]word");
					break;
				case('4'):
					System.out.println("mkdir[space]path[e.g. A:\\example][space]word");
					break;
				case('5'):
					System.out.println("copy[space]source_path[e.g. A:\\example1][space]destin_path[e.g. B:\\example2]"
							+ "[space]file.txt {Note: A:\\example1 should contain file.txt}");
					break;
				case('6'):
					System.out.println("delete[space]path[e.g. A:\\example]");
					break;
				case('7'):
					System.out.println("move[space]source_path[e.g. A:\\example][space]destin_path[e.g. B:\\example2]"
							+ "[space]file.txt {Note: A:\\example1 should contain file.txt}");
					break;	
				case('8'):
					System.out.println("exit");
					break;
				case('9'):
					System.exit(0);
					break;

			}
		}
		
}
